package com.aiit.mapper;

import com.aiit.annotation.AutoFill;
import com.aiit.entity.CreateBookingTime;
import com.aiit.enumeration.OperationType;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface CreateBookingTimeMapper {

    @Insert("insert into bookings(date,session_time,seat_number,status,create_time,update_time)" +
            "values" +
            "(#{date},#{session_time},#{seat_number},#{status},#{createTime},#{updateTime})")
    @AutoFill(value = OperationType.INSERT)
    void insert(CreateBookingTime createBookingTime);

}
